package tech.yunjing.train.entity;

import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * 公共字段实体类
 * Created by zlc on 2017/6/7
 */
@MappedSuperclass
public abstract class IdEntity {

    @Temporal(TemporalType.TIMESTAMP)
    protected Date createDate;	// 创建日期

    @Temporal(TemporalType.TIMESTAMP)
    protected Date updateDate;	// 更新日期

    protected String logicDelete;   //删除状态

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }
}
